package com.efast.dmom.mgmt.controller.les;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.les.TwBasPartBatchHeader;
import com.efast.dmom.mgmt.service.les.TwBasPartBatchHeaderService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Controller
@RequestMapping(value = "/twBasPartBatchHeader")
@Api(description = "零件收货批次属性头配置")
public class TwBasPartBatchHeaderController {

	@Autowired
	private TwBasPartBatchHeaderService twBasPartBatchHeaderService;

	/**
	 * @Title: distribution
	 * @Description: 分配上架库位
	 * @param @param twDocAsnHeader
	 * @param @return    参数
	 * @return ResultBean    返回类型
	 */
	@ApiOperation(value = "【新增】",notes = "请求参数：")
	@RequestMapping(value = "/insert", method = RequestMethod.POST)
	public @ResponseBody ResultBean insert(@RequestBody TwBasPartBatchHeader twBasPartBatchHeader) {
		ResultBean result = new ResultBean(true, "'");
		twBasPartBatchHeaderService.insertNonEmptyTwBasPartBatchHeader(twBasPartBatchHeader);
		return result;
	}

}
